package com.edu.app.mapper.core.popup;

import com.edu.app.bean.core.popup.LessonsPop;
import com.edu.app.util.AppBaseMapper;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface LessonMapper extends AppBaseMapper<LessonsPop> {
    @Select("SELECT id, lesson FROM S_LESSON")
    @Results({
            @Result(property = "key",  column = "id"),
            @Result(property = "value", column = "lesson")
    })
    List<LessonsPop> getLessonsPop();
}
